package com.bw.demo;

import com.alibaba.fastjson.JSONObject;

public class JSONUtils {
    public static void main(String[] args) {
        String json = "{\"common\":{\"ar\":\"110000\",\"ba\":\"iPhone\",\"ch\":\"Appstore\",\"is_new\":\"1\",\"md\":\"iPhone X\",\"mid\":\"mid_93871\",\"os\":\"iOS 13.3.1\",\"uid\":\"43\",\"vc\":\"v2.1.134\"},\"start\":{\"entry\":\"icon\",\"loading_time\":14426,\"open_ad_id\":6,\"open_ad_ms\":4388,\"open_ad_skip_ms\":1448},\"ts\":1747447643000}";
        System.out.println(isJSON(json));
    }

    public static boolean isJSON(String json) {

        try {
            JSONObject.parseObject(json);
            return true;
        }catch (Exception e){
           return false;
        }
    }

}
